package com.bigevent.service;

import com.bigevent.pojo.Category;

import java.util.List;

public interface CategoryService {
    //新增文章分类
    void addCategory(Category category);

    //查询文章分类
    List<Category> categoryList();
    //查找特定分类
    Category findCategoryByName(String categoryName);
    //根据id查询
    Category detail(Integer id);

    //更新
    void updateCategory(Category category);

    //删除
    void deleteCategory(Integer id);
}
